import request from "@/utils/request"
import type {
    getRoleListResponseData,
    roleInfoData,
    addRoleResponseData
} from "./type"
// get请求：获取数据列
export const getRoleList = ()=>
    request.get<any,getRoleListResponseData>("/manage/role/list")
// post请求：添加
export const addRole = (data:roleInfoData)=>
    request.post<any,addRoleResponseData>("/manage/role/add",data)
// post请求：更新
export const updateRole = (data:roleInfoData)=>
    request.post<any,addRoleResponseData>("/manage/role/update",data)